package com.yuwei.yurpc.serializer;

import java.io.IOException;

/**
 * 自定义序列化器
 *
 * @author yuwei
 * @date 14:00 2024/10/3
 */
public interface Serializer {
    public <T>  byte[] serialize(T obj)  throws IOException;

   public <T> T deserialize(byte[] bytes,Class<T> classType)  throws IOException ;
}
